const express = require('express')
const bodyParser = require('body-parser')
const userRouter = require('./router/userRouter.js')
const commodityRouter = require('./router/commodityRouter.js')

const app = express()
//body参数解析相关
app.use(bodyParser.urlencoded({
	extended: false
}))
app.use(bodyParser.json())

app.use('/user', userRouter)
app.use('/commodity', commodityRouter)



app.listen(3000, () => {
	console.log('服务已启动')
})
